/*
 ============================================================================
 Name		: MessageSender.h
 Author	  : Lenka Litvova
 Version	 : 1.0
 Copyright   : Copyright belongs to Lenka Litvova
 Description : CMessageSender declaration
 ============================================================================
 */

#ifndef MESSAGESENDER_H
#define MESSAGESENDER_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <rsendas.h>        // RSendAs, link against: sendas2.lib

// CLASS DECLARATION

/**
 *  CMessageSender
 * 
 */
class CMessageSender : public CBase
	{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CMessageSender();

	/**
	 * Two-phased constructor.
	 */
	static CMessageSender* NewL();

	/**
	 * Two-phased constructor.
	 */
	static CMessageSender* NewLC();

	/**
	 * Function to send sms.
	 */
	void SendSmsL(const TDesC& aPhoneNumber, const TDesC& aMessage);
	
	void SendMmsL(const TDesC& aPhoneNumber, const TDesC &aAttachment);
	
	/**
	 * Function to send email.
	 */
	void SendMailL(const TDesC& aMail, const TDesC& aMessage, const TDesC &aAttachment);

private:

	/**
	 * Constructor for performing 1st stage construction
	 */
	CMessageSender();

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL();

private:
	RSendAs iServer;
	};

#endif // MESSAGESENDER_H
